var ShareToSNS = function (){};

ShareToSNS.prototype = {
		constructor: ShareToSns,
		goFacebook : function(url, msg)
		{
			//var url = "http://www.naver.com";
			//var msg = "welcome facebook";
			var href = "http://www.facebook.com/sharer.php?u=" + url + "&t=" + encodeURIComponent(msg);
			 window.open(href, "", 'fullscreen=1, toolbar=0, location=0, status=0, menubar=0');
			 window.focus();
		}
};




/*
function goShare(index) 
{ 
 //var url = "http://www.naver.com"; 
 //var msg = "hello"; 
 //var href = "http://www.facebook.com/sharer.php?u=" + url + "&t=" + encodeURIComponent(msg); 


 var url = "http://www.naver.com"; 
 var msg = "asdasdadasd"; 


 var FaceBookHref = "http://www.facebook.com/sharer.php?u=" + url + "&t=" + encodeURIComponent(msg); 
 //var FaceBookHref = "http://www.facebook.com/sharer.php?u=" + encodeURIComponent(url) + "&t=" + encodeURIComponent(msg);
    //var TwitterHref = "http://twitter.com/home?status=" + encodeURIComponent(msg) + " " + encodeURIComponent(url); 


    if(index == 0) 
     window.OnedaycarMain.ShareToSNS(FaceBookHref); 
    else 
     window.OnedaycarMain.ShareToSNS(TwitterHref);
 	
 window.open(FaceBookHref, "", 'fullscreen=1, toolbar=0, location=0, status=0, menubar=0');
 window.focus();

}
*/